import request from "@/utils/request";

// 查询国籍列表
export const findCountry = () =>
  request({
    url: "/api/client/api/country",
    method: "GET",
  });

// 获取公司列表
export const findCompanyList = () =>
  request({
    url: "/api/client/api/company",
    method: "GET",
  });

// 获取打印机列表
export const findPrinterList = () =>
    request({
        url: "/api/client/api/printer/list",
        method: "GET",
    });

// 获取用户详情
export const getCustomerInfo = (name: string) =>
  request({
    url: `/api/client/api/customer/info?name=${name}`,
    method: "GET",
  });

// 初始化订单
export const initOrder = () =>
  request({
    url: "/api/client/api/order/init",
    method: "GET",
  });

// 创建订单
export const createOrder = (data: any) =>
  request({
    url: "/api/client/api/create/order",
    method: "POST",
    data,
  });

// 更新订单
export const updateWhOrder = (data: any) =>
  request({
    url: "/api/client/api/update/order",
    method: "POST",
    data,
  });

// 仓管打单
export const managerPrint = (data: any) =>
  request({
    url: "/api/client/api/print/order",
    method: "POST",
    data,
  });
